﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Ezio.Model
{
    public partial class Users
    {
        public List<Privileges> Privileges
        {
            get
            {
                List<Privileges> miPrivileges = new List<Privileges>();
                Roles.ToList().ForEach(t=>miPrivileges.AddRange(t.Privileges));
                return miPrivileges;
            }
        }
    }
}